<?php $posts = $this->requestAction('/posts/recentposts/6'); ?>

<div class="widget widget-posts">
	<h3 class="title">Blog <span>Techy thoughts</span></h3>
	<ul>
		<?php foreach($posts as $post): ?>
			<?php $data_str = ' <span class="date">' . $time->niceShort($post['Post']['date']) . '</span>'; ?>
		<li><?php echo $html->link($text->truncate($post['Post']['title'], 25, '..') . $data_str, array('plugin'=>'posts', 'controller'=>'posts','action'=>'view', $post['Post']['slug']), null, null, false) ?></li>
		<?php endforeach; ?>
	</ul>
<?php echo $html->link(__('Browse all blog posts', true), array('plugin'=>'posts', 'controller'=>'posts'), array('class'=>'action-link')) ?>
</div>